package nl.ru.rd.facedetection.nnbfd.neuralnetwork;

import java.io.Serializable;

/**
 * An Input Node in a Network.
 * 
 * @author Wouter Geraedts (s0814857)
 */
public class Input implements Serializable
{
	private static final long serialVersionUID = 281547985113527395L;
	private double value;

	/**
	 * Create a Node with an initial value.
	 * 
	 * @param value
	 *            The initial value to be used by this Input Node.
	 */
	public Input(double value)
	{
		this.setValue(value);
	}

	/**
	 * Get the value of this Node.
	 * 
	 * @return The value of this Node.
	 */
	public double getValue()
	{
		return this.value;
	}

	/**
	 * Set the value of this Node.
	 * 
	 * @param value
	 *            The value of this Node.
	 */
	public void setValue(double value)
	{
		this.value = value;
	}
}
